<div class="tree-table" *ngIf="treeTableOption">
  <p-treeTable [value]="treeTableOption.Content" [columns]="treeTableOption.header" selectionMode="multiple" [(selection)]="select" (onNodeSelect)="selectClick($event)" (onNodeUnselect)="noSelectClick($event)">
    <ng-template pTemplate="header" let-columns>
      <tr style="height: 5vh;">
        <th *ngFor="let col of columns">
          {{col.header}}
        </th>
      </tr>
    </ng-template>
    <ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-columns="columns" >
      <tr [ttSelectableRow]="rowNode">
        <td *ngFor="let col of columns; let i = index">
          <p-treeTableToggler [rowNode]="rowNode" *ngIf="i == 0"></p-treeTableToggler>
          {{rowData[col.field]}}
        </td>
      </tr>
    </ng-template>
  </p-treeTable>
</div>

